package com.inforich.projectManage.service;

import java.util.List;
import java.util.Map;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.inforich.common.enums.StageEnum;
import com.inforich.projectManage.domain.ProjectRubbishDetail;
import com.inforich.projectManage.domain.StageRubbishDetail;

/**
 * 项目垃圾明细Service接口
 *
 * @author hjm
 * @date 2022-10-30
 */
public interface IProjectRubbishDetailService extends IService<ProjectRubbishDetail> {

  /**
   * 分页列表
   */
  Page<ProjectRubbishDetail> pageProjectRubbishDetail(Page<ProjectRubbishDetail> page,
      Map<String, Object> map);

  /**
   * 列表
   */
  List<ProjectRubbishDetail> listProjectRubbishDetail(Map<String, Object> map);

  List<ProjectRubbishDetail> listProjectRubbishDetailByProjectId(String projectId);

  void removeByProjectId(String projectId);

  void saveDetail(List<ProjectRubbishDetail> detailList, String projectId, StageEnum stageEnum);

  List<StageRubbishDetail> listStageRubbishDetail(String projectId, String stage);
}
